package cn.xyfmzmy.plugin;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * 自定义插件MyPlugin的实现，计数插件
 */
public class CountPlugin implements MyPlugin{

    AtomicInteger count = new AtomicInteger(0);

    @Override
    public void beforeGetTime() {
        // 打印记数
        System.out.println(count.incrementAndGet());
    }

}

